<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="./assets/fontAwesom/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <link rel="stylesheet" href="./css/search.css">
    <script src="./assets/mui/js/mui.min.js"></script>
    <script src="./assets/zepto/zepto.min.js"></script>
    <!-- 引入模板渲染引擎工具 -->
    <script src="./assets/artTemplate/template-native.js"></script>
    <script src="./js/search.js"></script>
</head>

<body>
    <header class="mui-bar mui-bar-nav my-header">
        <span class="mui-icon mui-icon-arrowleft" style="color: #fff" id="back"></span>
        <h1 class="mui-title">淘宝</h1>
    </header>
  
    <!-- 内容部分 -->
    <div class="mui-content my-serach">
        <!-- input 搜索框 -->
        <div class="search">
            <input type="text" placeholder="请输入搜索关键字" class="search-input">
            <button id="btnSearch">搜索</button>
        </div>

        <div class="history">
            <span class="title mui-pull-left">搜索记录</span>
            <span class="clear mui-pull-right clearHistory"> <i class="mui-icon mui-icon-trash"></i>清空记录</span>
        </div>
        <div class="history-list">
            <ul class="mui-table-view">

            </ul>
        </div>
    </div>
</body>
<script id="search-list" type="text/template">
    <% for(var i = 0 ; i < data.length;i++)  { %>
    <li class="mui-table-view-cell"> <%=data[i] %> </li>
    <% } %>
</script>

</html>